package com.xcdh.domain.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.TableName;



/**
 * 用户表
 *
 * @author ${author}
 * @email ${email}
 * @date 2023-10-02 14:20:03
 */
@Data
@TableName("sys_user")
public class UserDO extends BaseEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    private Long userId;
    //用户名
    private String username;
    //密码
    private String password;
    //随机盐
    private String salt;
    //简介
    private String phone;
    //头像
    private String avatar;
    //部门ID
    private Long deptId;

    @TableField(exist = false)
    private String deptName ;
    //0-正常，9-锁定
    private Integer lockFlag;
    //0-正常，1-删除
    private Integer delFlag;
}
